import Vue from 'vue'
import Router from 'vue-router'
import User from '@/components/user' //个人中心
import Myorder from '@/components/order/myorder' //客户订单
import Upshop from '@/components/shop/upShop' //升级店铺
import mapCity from '@/components/shop/mapCity' //地图
import editShop from '@/components/shop/editShop' //编辑店铺
import createShop from '@/components/shop/createShop' //创建店铺

import Datacount from '@/components/Datacount/data_count' //数据统计
import addGoods from '@/components/Datacount/addGoods' //新增商品
import success_goods from '@/components/Datacount/success_goods' //商品发布成功
import goodsAdmin from '@/components/Datacount/goodsAdmin' //商品管理
import OrderDetails from '@/components/order/order' //订单详情
import Sendgoods from '@/components/order/send_goods' //发货
import Logistical from '@/components/order/logistical' //订单详情
Vue.use(Router)

export default new Router({

  routes: [{
      path: '/index',
      name: 'createShop',
      component: createShop,
      meta: {
        keepAlive: false, //此组件需要被缓存
      }
    },
    {
      path: '/editShop',
      name: 'EditShop',
      component: editShop,
      meta: {
        keepAlive: false, //此组件需要被缓存
      }
    },
    {
      path: '/myorder',
      name: 'Myorder',
      component: Myorder,
      meta: {
        keepAlive: false, //此组件需要被缓存
      }
    },
    {
      path: '/Sendgoods',
      name: 'Sendgoods',
      component: Sendgoods,
      meta: {
        keepAlive: false, //此组件需要被缓存
      }
    },
    
    {
      path: '/Upshop',
      name: 'Upshop',
      component: Upshop,
      meta: {
        keepAlive: false, //此组件需要被缓存
      }
    },
    // {
    //   path: '/mapCity',
    //   name: 'mapCity',
    //   component: mapCity,
    //   meta: {
    //     keepAlive: false, //此组件需要被缓存
    //   }
    // },
    {
      path: '/User',
      name: 'User',
      component: User,
      meta: {
        keepAlive: false, //此组件需要被缓存
      }
    },
    
    {
      path: '/Datacount',
      name: 'Datacount',
      component: Datacount,
      meta: {
        keepAlive: false, //此组件需要被缓存
      }
    },
    {
      path: '/addGoods',
      name: 'addGoods',
      component: addGoods,
      meta: {
        keepAlive: false, //此组件需要被缓存
      }
    },
    {
      path: '/success_goods',
      name: 'success_goods',
      component: success_goods,
      meta: {
        keepAlive: false, //此组件需要被缓存
      }
    },
    
    {
      path: '/goodsAdmin',
      name: 'goodsAdmin',
      component: goodsAdmin,
      meta: {
        keepAlive: false, //此组件需要被缓存
      }
    },
    {
      path: '/OrderDetails',
      name: 'OrderDetails',
      component: OrderDetails,
      meta: {
        keepAlive: false, //此组件需要被缓存
      }
    },
    {
      path: '/logistical',
      name: 'Logistical',
      component: Logistical,
      meta: {
        keepAlive: false, //此组件需要被缓存
      }
    }
  ]
})
